package org.ii.domain.common;

import java.util.UUID;

public class UuidGenerator {
	/**
	 * Generates and returns a string representation of UUID (Universal Unique Identifier).
	 * <p/>
	 * Intended to be used by to set uuid on entities implementing the {@link UuidIdentifiable} interface.
	 * <p/>
	 * 
	 * @return
	 * @see UuidIdentifiable
	 */
	public static String generateUuid() {
		final UUID uuid = UUID.randomUUID();
		return uuid.toString();
	}
}
